home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1994 November / Cd Ware (Nro. 2) - Epimundo.iso / OS2 / PC2_170.ZIP / PC2.FAQ < prev    next >
Encoding:
Text File  |  1994-06-01  |  22.7 KB  |  446 lines

  1.  
  2. ******************************************************************************
  3.                             Frequently asked questions
  4.  
  5.                    PC/2 - Programm Commander/2 Version 1.70 for
  6.                          IBM OS/2 2.x Presentation Manager
  7.                       Copyright (C) by Stangl Roman 06, 1994
  8.  
  9.                                Version 1.70 Draft
  10. ******************************************************************************
  11.  
  12.  1.) How can I configure PC/2 to popup the menu after a single-click instead
  13.      of the default double-click with mouse button 1 on the Desktop?
  14.  
  15.      First, you may select the Configure Desktop dialog to select a default
  16.      click which is written to the PC2.INI profile.
  17.      Second, use the commandline option -SingleClick or /SingleClick to
  18.      overwrite the default behaviour read from PC2.INI. If you run PC/2
  19.      as a WPS replacement, you can't use any commandline option, because
  20.      OS/2 seems to dislike commandline options on programs run as the WPS,
  21.      but this doesn't prevent you from setting the default behaviour with the
  22.      Configure Desktop dialog.
  23.  
  24.  2.) PC/2 assumes that OS/2 is installed on drive C:, but I use drive H:!
  25.  
  26.      Either start with a blank menu and add your programs, or use an editor
  27.      f.e. EPM.EXE to replace all C: to H: in the profile.
  28.  
  29.  3.) How do I add DOS Settings correctly?
  30.  
  31.      First you should use the same spelling as in the settings of a DOS
  32.      program. They have usually ON/OFF or numbers as possible selections.
  33.      For ON/OFF you add =1 or =0 to the setting, f.e. HW_TIMER=1. For
  34.      numbers add =xxxx, f.e. EMS_MEMORY_LIMIT=1024 or 
  35.      DOS_VERSION=DOSPROG.EXE,5,0,255.
  36.  
  37.  4.) How can I add batch files?
  38.  
  39.      Batch files aren't executable files, they need a command processor to
  40.      interpret them. Therefore you have to select a command processor and
  41.      add /C filename.bat or /C filename.cmd to the parameters entryfield.
  42.      You may whish to look at the command reference of CMD.EXE and COMMAND.COM
  43.      for more details. If you use the standard file dialog to find the batch
  44.      file you want to add, PC/2 automatically add this batch file as an
  45.      argument of an command processor.
  46.  
  47.  5.) Is HPFS supported?
  48.  
  49.      Yes, PC/2 fully supports HPFS. However, if a filename contains spaces
  50.      you have to place it in double-quotes, f.e. at a command prompt you
  51.      would type DIR "D:\OS!2 2.0 Desktop\*" /s to list all files of the
  52.      Desktop directory. The same is true for PC/2, f.e. you want to start
  53.      a batchfile that conforms HPFS-filename convention, you may create
  54.      an entry:
  55.         Program Title:      HPFS-Test
  56.         Path and Filename:  C:\OS!2 2.0 Desktop\Prompts\Command Processor.exe
  57.         Working Directory:  C:\OS!2 User Applications
  58.         Parameters:         /C ""C:\OS!2 2.0 Desktop\Run Me.cmd""
  59.      Note: Passing HPFS-filenames to command processors may required two
  60.      double-quotes (f.e. CMD.EXE does). Also take a look at the help pages
  61.      for CMD.EXE to get more details.
  62.  
  63.  6.) How do I start a full-screen WIN-OS2 session?
  64.  
  65.      Create an entry that of a full-screen DOS command prompt that starts
  66.      WINOS2.COM (f.e. C:\OS2\MDOS\WINOS2\WINOS2.COM). Then add the required
  67.      DOS Settings (f.e. the following settings greatly improve performance
  68.      on a 8514/A adapter: VIDEO_8514_XGA_IOTRAP=0, VIDEO_RETRACE_EMULATION=0,
  69.      VIDEO_SWITCH_NOTIFICATION=1, XMS=64, EMS=0, DPMI=4, IDLE_SECONDS=2,
  70.      IDLE_SENSITIVITY=100, HW_ROM_TO_RAM=1. Thanks to Timothy Sipples for
  71.      them!).
  72.  
  73.  7.) How do I start any windowed WIN-OS2 session type?
  74.  
  75.      Sorry, I don't know it myself. For a WIN-OS2 session you can usually
  76.      specifying in the settings: WIN-OS2 full screen, WIN-OS2 window and
  77.      separate session. If someone knows which OS/2 APIs are used to start
  78.      sessions with these settings, please mail me!
  79.      You can use MAKEOBJ.CMD to create a WPS Object with a known Object ID.
  80.      Such an object can then be started with PC/2, so if you want to start
  81.      a seamless WIN-OS2 session first create an object that corresponds to
  82.      a seamless WIN-OS2 session and then use the defined object ID as the
  83.      filename of that object to start is via PC/2.
  84.      PC/2 allows you to start seamless WIN-OS2 session without any
  85.      WPS Object defined, but only in separate sessions, even if the WPS
  86.      is not running (OS/2 2.1 GA+ only!).
  87.  
  88.  8.) How do I start a VDM from an image?
  89.  
  90.      First create the image, then create an entry of a full-screen or windowed
  91.      DOS session. Then add to the DOS settings:
  92.         DOS_STARTUP_DRIVE=[path]DISK.IMG
  93.      where [path]DISK.IMG is the path and filename of the image you wand to
  94.      start. Caution! On a system (2.0 GA) it doesn't work, I don't know why.
  95.  
  96.  9.) How do I start a VDM that boots from drive A:?
  97.  
  98.      Same a item 8.) says, only adjust the DOS settings to:
  99.         DOS_STARTUP_DRIVE=A:
  100.      Caution! On a system (2.0 GA) the system traps, I don't know why.
  101.  
  102. 10.) Why has PC/2 an option to shut down OS/2?
  103.  
  104.      Some people use PC/2 as a replacement for the WPS (that sames memory)
  105.      and they can't click with button 2 to get the Popup Menu, from where
  106.      shutdown can be selected.
  107.      PC/2 requests OS/2 to clear all filebuffers. After all disk activity
  108.      has been stopped it is safe to power off your system. PC/2 don't closes
  109.      the programs, but after the disk activity has stopped, all processes are
  110.      frozen (you can switch to or select programs anymore).
  111.  
  112. 11.) How do I add commandline parameters a run-time?
  113.  
  114.      F.e. assume you created an Menuentry that start the editor EPM.EXE.
  115.      After you selected EPM, just before it is started, you can request
  116.      a dialog box from PC/2, where you can enter any commandline parameter
  117.      by adding a [...] construct in the parameters entryfield of the Program
  118.      Installation dialog. This work similar to the same WPS feature.
  119.  
  120. 12.) How do I install PC/2 as a replacement of the WPS?
  121.  
  122.      First, install PC/2 in the normal way. Second, edit your CONFIG.SYS to
  123.      replace the statement (you may have to use another drive name instead
  124.      of C:):
  125.         SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE
  126.      by
  127.         REM * SET RUNWORKPLACE=C:\OS2\PMSHELL.EXE
  128.         SET RUNWORKPLACE=h:\path\PC2.EXE
  129.      where h:\path is the path where you installed PC/2 into, f.e.
  130.      C:\PMAPPS\PC2.
  131.      Second, add the path where PC2HOOK.DLL is installed to the LIBPATH
  132.      environment varible in your CONFIG.SYS. PC/2 will not be loaded as a
  133.      WPS replacement, if PC2HOOK.DLL is not in a path pointed by the
  134.      LIBPATH environment variable (this is new to Version 1.70 because
  135.      PC2HOOK.DLL is now statically linked).
  136.      The next time you boot, the WPS will not be loaded (you can verify this
  137.      by a blank screen displayed instead of the normal Desktop with objects.
  138.      Not using the WPS saves memory and reduces boot time lightly.
  139.      Of course you may start the WPS later, either by starting PMSHELL.EXE
  140.      from a command prompt or from an PMSHELL Menuitem of PC/2. You can
  141.      follow the WPS initialization by heavy disk access and buildup of your
  142.      Desktop with objects.
  143.      PC/2 requires to know the Desktop (in technical terms the window handle
  144.      of the Desktop) to be able to catch mouse button 1 clicks. If you start
  145.      the WPS the Desktop changes too. Therefor you must restart PC/2 by
  146.      selecting PC/2 and close it from the task list. PC/2 will automatically
  147.      restarted by OS/2 (because it is the WORKPLACE process that runs) and then
  148.      work as before.
  149.      PC/2 display the Window List on PM too, as the WPS does by clicking mouse
  150.      buttons 1 an 2 together.
  151.  
  152. 13.) How do I add WPS Objects to start then via PC/2?
  153.  
  154.      The important thing is, that you have to know the WPS Object ID
  155.      (Identifier) to be able to add them to PC/2. For preinstalled Objects,
  156.      you can find the ID in the file C:\OS2\OS2_20.RC (sorry I don't know
  157.      any other method to get them). For user-installed Objects, you have
  158.      to use MAKEOBJ.CMD, a small REXX-utility supplied with PC/2, to create
  159.      an Object with a known ID. You can't use Objects created by the
  160.      Program Template, because I don't know how to get the ID of such
  161.      Objects, if you know how to get the ID of such Objects, p l e a s e
  162.      mail me.
  163.      The ID of Objects, created as outlined above, may than be added in the
  164.      entryfield Path and Filename in the Program Installation dialog, with
  165.      the Program Type WPS Object.
  166.      If such an Object is a seamless WIN-OS2 session, PC/2 can also start
  167.      such a seamless WIN-OS2 session - but remember, without an Object
  168.      created with a known ID no seamless WIN-OS2 support with PC/2!
  169.  
  170. 14.) How do I use Drag & Drop?
  171.  
  172.      Additional to the standard file dialog, you may use Drag & Drop to add
  173.      applications in the Program Installation dialog. F.e. you may use a drive
  174.      object, select one (1 !) application drag it into the dialog and drop it
  175.      onto any area that accepts it (any area that isn't covered by text,
  176.      buttons, entryfields,...).
  177.      PC/2 will try to determine the type of the application you added
  178.      automatically, but you may overwrite it.
  179.  
  180. 15.) How can I add WPS Objects?
  181.  
  182.      If you drag WPS Objects onto the dialog, you must ensure, that the entry-
  183.      field Path and Filename contains the correct Object ID, and the Program
  184.      Type is WPS Object.
  185.      For preinstalled Objects, you may need to look into OS2_20.RC to the the
  186.      Object ID, f.e. <WP_DRIVES> or <WP_INST>.
  187.      For user-installed Objects, use MAKEOBJ.CMD to create an Object with a
  188.      known Object ID, f.e. <WP_WIN_PBRUSH> or <WP_WIN_WORD4WIN>.
  189.      Then select the Object, and drag a copy over the Program Installation
  190.      dialog and drop it on an area that accepts it.
  191.      For preinstalled Object you have to verify that the entryfield Path and
  192.      Filename contains the Object ID of this object.
  193.      For user-installed Object (with MAKEOBJ.CMD) the entryfield Path and
  194.      Filename should contain the Object ID, as long as you didn't rename the
  195.      created Object.
  196.  
  197. 16.) Does PC/2 change to the root of all drives except for the working dir?
  198.  
  199.      Yes, PC/2 changes to the root of all non-removable drives before the
  200.      selected application is started.
  201.  
  202. 17.) Which versions of OS/2 are supported?
  203.  
  204.      PC/2 was developed under OS/2 2.0 GA and OS/2 2.1 GA, but I know it
  205.      works under the December 2.1 beta and under the March 2.1 beta too.
  206.      PC/2 also works unter OS/2 2.11 (OS/2 2.1 GA w/ Service Pack
  207.      installed).
  208.  
  209. 18.) How do I enable the Virtual Desktop and/or sliding Focus?
  210.  
  211.      Start PC/2, click on the Desktop and select SETUP Desktop. A dialog box
  212.      will appear where you can enable these features. Just press help for
  213.      further information.
  214.  
  215. 19.) How does the sliding Focus work?
  216.  
  217.      OS/2 generates for all pointer movements messages, that contain the
  218.      window where the message originated. PC/2 hooks into these messages
  219.      and determines the active window. If the active window is not the
  220.      window that originated the message, it makes the window active, where
  221.      the message originated. Of course, PC/2's window, the Desktop and
  222.      the window list are treated differently.
  223.      To preserve the Z-order of the windows, also check its option.
  224.      Caution! The sliding Focus does not work well, if you have open
  225.      seamless WIN-OS2 sessions.
  226.  
  227. 20.) How do I use the enabled Virtual Desktop?
  228.  
  229.      You may know that f.e. a VGA-display has usually 640 columns and 480
  230.      rows (numbered from 0...639 and 0...479). If you position your mouse
  231.      pointer over the surrounding rows and/or columns of your display
  232.      (here columns 0 or 639 and/or rows 0 or 479) PC/2 shifts all windows
  233.      that exist on your system (with some exceptions like window list) in
  234.      the opposite direction. Some windows may slide out, some may slide in
  235.      from the other direction.
  236.      You may click on any virtual Desktop on the overview Window to
  237.      immediately switch to this Desktop.
  238.  
  239. 21.) How does the Virtual Desktop work?
  240.  
  241.      First, for all windows OS/2 tracks their coordinates in data structures.
  242.      PC/2 queries, and adjusts them according to the mouse movements the
  243.      user made. F.e. if the mouse pointer is over column 0 on the screen,
  244.      PC/2 adds to the x-position of all windows for example 50 % of the
  245.      x-dimension of the screen. The windows appear to move rightward (out
  246.      of the display) because the display shift leftward within the Virtual
  247.      Desktop. Because windows are usually aligned on byte-boundaries, they
  248.      may not appear on their original place if you shift one unit in one
  249.      direction and one unit in the opposite direction.
  250.  
  251. 22.) How do I start applications on the Virtual Desktop?
  252.  
  253.      In the Program Installation dialog, you can define the size and
  254.      position that the application should use. You can f.e. enter
  255.      a position of -200 in X, which would position the application left
  256.      out of your Desktop. PC/2 forces the window to the position you entered,
  257.      however the application may determine its size self. To allow PC/2 to
  258.      find the window, ensure that you enter the applications Window List entry
  259.      or titlebar text to the Session Name entryfield on the Hotkey notebook
  260.      page of the Program Installation dialog. You don't need to enter the
  261.      complete Window List or titlebar text, just any substring that matches
  262.      with the text.
  263.      However you have to ensure that the substring matches only with the
  264.      application you want.
  265.  
  266. 23.) What's the name of the Desktop?
  267.  
  268.      OS/2 2.0 introduced the name "OS/2 2.0 Desktop" for the Desktop window,
  269.      which normally is the WPS. OS/2 2.1 will use the name "Desktop" instead,
  270.      if you install it over a newly formatted system. OS/2 2.1 may use a
  271.      different name, if you install it over a previous OS/2 2.0 system, so
  272.      please read the README file provided with OS/2 2.1 carefully.
  273.      You may use the Notebook that appears after clicking mouse button 2 on
  274.      the WPS at page Desktop-Settings to change the Desktop's name.
  275.      Your Desktop may have a name translated to your national language.
  276.  
  277. 24.) What's the name of the Window List?
  278.  
  279.      The Window List (known as Task List in OS/2 1.x) is just named
  280.      "Window List". It may have a name translated to your national
  281.      language.
  282.  
  283. 25.) What about seamless WIN-OS2 support, without a corresponding WPS object?
  284.  
  285.      PC/2 now allows you to start seamless WIN-OS2 sessions, but only as
  286.      separate sessions. This means, if you start a Windows application, the
  287.      complete WIN-OS2 environment will come up. This wastes memory, so I
  288.      suggest to start only the Windows Program Manager from PC/2 and any
  289.      Windows application then from the Program Manager.
  290.      This seamless WIN-OS2 support works also without the WPS installed,
  291.      under OS/2 2.1 GA with no problems, but OS/2 2.0 GA hangs during load.
  292.      So under OS/2 2.0 GA only start seamless WIN-OS2 sessions if the WPS is
  293.      running.
  294.      Under OS/2 2.0 GA you can only successfully start WIN-OS2 sessions in
  295.      standard mode, 386 enhanced mode in not supported by OS/2 and real mode
  296.      starts to load, but doesn't complete successfully for unknown reasons..
  297.      Under OS/2 2.1 GA is real mode not supported, so you may only start
  298.      standard and 386 enhanced sessions.
  299.  
  300. 26.) How many applications can I start within a seamless WIN-OS2 session?
  301.  
  302.      Usually only 1, but you may start the Windows Program Manager as the
  303.      first and any Windows applications as a commandline parameter, which
  304.      the Program Manager will start for you.
  305.      If you start the Program Manager you can of course start any Windows
  306.      application from it, but make sure, that you have enough storage defined
  307.      in the DOS Settings (usually DPMI_MEMORY_LIMIT=16 or so).
  308.  
  309. 27.) How do I define a program's priority?
  310.  
  311.      Just select the last notebook page from the Program Installation
  312.      dialog. Warning - changing a program's priority may have severe
  313.      impacts on your system's performance, giving nothing to the complete
  314.      CPU time to an application.
  315.      For example you may set a tape backup or image conversion program to
  316.      a lower priority or a real-time data acquisition to a higher priority.
  317.      For DOS sessions (and WIN-OS2 sessions are DOS sessions) the priority
  318.      can't be changed, because this would lock PM for unknown reasons.
  319.  
  320. 28.) How do I define a Hotkey to switch to a session?
  321.  
  322.      Just select notebook page 4 from the Program Installation dialog.
  323.      You may define any key from the pool keys 0 to 9 and A to Z with either
  324.      combined with the CTRL or ALT key. Once a Hotkey is defined for an
  325.      application it is no more available for other sessions. You may define
  326.      Hotkeys for 72 different sessions as the maximum.
  327.      If PC/2 detects that the user pressed a Hotkey and the application the
  328.      Hotkey is defined for is not running, PC/2 launches the application.
  329.  
  330. 29.) How does the Hotkey feature work?
  331.  
  332.      PC/2 knows which Hotkeys are used if you have defined some once. PC/2
  333.      also need to know at least a part of the session's name to switch to.
  334.      So you have to fill the entryfield "Session Name:" with the session's
  335.      name. For the session's name either use part of the string that
  336.      appears in the session's titlebar, or part of the string that appears
  337.      in the Window List for this session.
  338.      If you press the Hotkey for a session, PC/2 searches all titlebars
  339.      and the Window List if the text from the entryfield "Session Name:"
  340.      is part of and switches to the session if a match was found.
  341.      PC/2 not only switches to the session the Hotkey is defined for, but
  342.      also onto the Virtual Desktop the session resides on.
  343.      If neither the session's name can be found on any window's titlebar nor
  344.      in the Window List, PC/2 assumes the application is not running and
  345.      launches it.
  346.  
  347. 30.) Why should I use the Hotkey feature?
  348.  
  349.      Well, you don't need to use it, but it may show useful to quickly switch
  350.      to a certain session, for example a host terminal emulator and than
  351.      switch back to a compiling environment residing on different Virtual
  352.      Desktops.
  353.  
  354. 31.) I have defined some Hotkeys now these keys are not available on other
  355.      sessions any more!
  356.  
  357.      Once you have defined a Hotkey, this Hotkey will be "eaten" from PC/2
  358.      when it is pressed, because if the focus is changed it doesn't make
  359.      sense to send this key to any other window. For example if you have
  360.      defined ALT+5 to switch to you To-do list, you want to switch to
  361.      the To-do list when pressing ALT+5 and don't want ALT+5 sent
  362.      to the word processor (assuming you pressed ALT+5 when the word
  363.      processor had the focus).
  364.      If you need a key defined as a Hotkey for another application, for
  365.      example your spreadsheet, you have to define a different Hotkey, because
  366.      pressing the Hotkey while having the focus on your spreadsheet (or
  367.      any other application) does not invoke the spreadsheet's mnemonic but
  368.      switches to another session.
  369.  
  370. 32.) I switched to another session now the Hotkey feature doesn't work
  371.      anymore!
  372.  
  373.      You have probably switched to an OS/2 session. OS/2 windowed or
  374.      fullscreen sessions eat up all keystrokes once they have the focus
  375.      so PC/2 doesn't get keystrokes any more. You have to switch to another
  376.      session, before PC/2 will get keystrokes again.
  377.  
  378. 33.) I defined a Hotkey but the wrong session is activated!
  379.  
  380.      You have probably defined a Hotkey for a session and have started
  381.      more than one instance of this session. PC/2 only switched to the
  382.      first session, that has defined a Hotkey ignoring all other sessions
  383.      that have defined the same hotkey.
  384.      Be sure that you don't start more than one instance of a session
  385.      a Hotkey is defined for:
  386.  
  387. 34.) How to I define a Hotkey for a certain window (f.e. Drive C object)
  388.      even if it wasn't started from PC/2?
  389.  
  390.      Assume that you have opened the Drive C - Tree View object from the
  391.      OS/2 System->Drives object of the WPS and you want to define ALT+C
  392.      as its Hotkey.
  393.      Create a new menuentry and skip to the Hotkey notebook page of the
  394.      Program Installation dialog. Enable the Hotkey feature and select
  395.      ALT+C as the Hotkey.
  396.      Then select the entry of the Drive C object from the Current Window
  397.      List MLE and doubleclick on it. The selected entry will also be
  398.      filled into the entryfield Session Name. Now save the changes and
  399.      voila use the newly defined Hotkey.
  400.  
  401. 35.) Do I need to completely fill in the Program Installation dialog to
  402.      define a new Hotkey?
  403.  
  404.      No, you just need to fill in the Hotkey labeled notebook page. PC/2
  405.      uses the text entered in the entryfield Session Name to compare with
  406.      all windows titlebars and Window List entries. If the text matches
  407.      with any of these entries, the window the entries are defined is
  408.      activated.
  409.      To use the Hotkey feature just ensure that the text entered in the
  410.      entryfield Session Name is part of any window's titlebar or Window
  411.      List entry.
  412.  
  413. 36.) I have 2 OS/2 windows with the same name. Will the Hotkey work?
  414.  
  415.      Yes, if a Hotkey is defined the first window whose titlebar or
  416.      Window List entry matches to Session Name is activated. You have to
  417.      ensure a unique title for a window to allow PC/2 exactly identify
  418.      a window.
  419.  
  420. 37.) How do I access the Window List on PM?
  421.  
  422.      If you are over the PM with the mouse pointer, just press and hold
  423.      down one mouse button and then click the other while not moving the
  424.      mouse pointer. The Window List will appear with the mouse pointer
  425.      in center (when the complete Window List can displayed then).
  426.      You are over the PM, if either you don't run the WPS or you moved
  427.      the WPS to an other Virtual Desktop.
  428.      Of course pressing CTRL+ESC works too.
  429.      button
  430.  
  431. 38.) What is the feature "Button 2 titlebar click to set window to
  432.      bottom" useful for?
  433.  
  434.      Even if you don't use the Virtual Desktop feature, you may find that
  435.      sometimes you like to switch to window which is behind the currently
  436.      active one, but you don't wand to move or minimize the active one to
  437.      get the other window to the top.
  438.      If this option is enables just click mouse button 2 on the active
  439.      window's titlebar to set this window to the bottom. The window
  440.      previously behind the active window becomes now the topmost window.
  441.      However, you can't activate window movement with mouse button 2 any-
  442.      more, but you can do this with mouse button 1 too.
  443.  
  444. Please read also the help panels and enjoy! Roman Stangl
  445.  
  446.